<template>
	<view class="tourshow pageBg">
		<view :style="{height: getNavBarHeight()+'px'}"></view>
		<view class="header">
			<view class="img">
				<image src="../../static/logo.png" mode="aspectFill"></image>
			</view>
			<view class="info">
				建议优化
			</view>
			<view class="btn">
				<button>一键优化</button>
			</view>
		</view>
		<view class="nav">
			<view class="item" v-for="item in 6">
				<view class="left">
					<view class="icon">icon</view>
				</view>
				<view class="right">
					<view class="title">box1.1</view>
					<view class="text">icon</view>
				</view>
			</view>
		</view>
		<view class="footer">
			<view class="item" v-for="item in 3">
				<view class="left">
					<view class="icon">
						icon
					</view>
					<view class="info">
						<view class="title">电量管理</view>
						<view class="mintitle">多种模式随心设置</view>
					</view>
				</view>
				<view class="right">
					<button>查看</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import { getNavBarHeight } from '@/utils/system.js'
</script>

<style lang="scss" scoped>
	.tourshow {
		padding: 30rpx;
		// padding-bottom: 100rpx;
		// background: #f9f9f9;

		.header {
			height: 800rpx;
			// background-color: pink;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;

			.img {
				margin: 50rpx;
				width: 400rpx;
				height: 400rpx;
				border-radius: 50%;
				background: #ccc;
				overflow: hidden;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.btn {
				margin: 30rpx;

				button {
					width: 300rpx;
					background-color: #4aab93;
					border: none;
					border-radius: 20rpx;
					font-size: 35rpx;
					font-weight: 700;
					color: #fff;
				}

				button:after {
					border: none;
				}
			}
		}

		.nav {
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			gap: 30rpx;

			.item {
				padding: 30rpx 50rpx;
				// height: 200rpx;
				background: #fff;
				border-radius: 20rpx;
				box-shadow: 0 0 4rpx rgba(0, 0, 0, .1);
				display: flex;
				justify-content: space-between;
				align-items: center;

				.right {
					// margin-right: 20rpx;
				}
			}
		}

		.footer {
			.item {
				box-shadow: 0 0 4rpx rgba(0, 0, 0, .1);
				border-radius: 20rpx;
				margin: 30rpx 0;
				padding: 30rpx;
				background: #fff;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.left {
					display: flex;
					align-items: center;

					.info {
						margin-left: 30rpx;
						display: flex;
						flex-direction: column;
						justify-content: space-between;

						.title {
							font-weight: 700;
							line-height: 50rpx;
							font-size: 35rpx;
						}

						.mintitle {
							margin-top: 10rpx;
							font-size: 26rpx;
							color: #8e8e8e;
						}
					}
				}

				.right {
					button {
						height: 60rpx;
						color: #2ab36a;
						border-radius: 30rpx;
						font-size: 30rpx;
						font-weight: 600;
						line-height: 60rpx;
						background: #f0fbf3;
					}

					button:after {
						border: none;
					}
				}
			}

		}
	}
</style>